<form class="layui-form" lay-filter="tpl_article{$article_id}" action="{:url('article/saveData')}">
	<input type="hidden" name="article_id" class="layui-input" />
	<div class="layui-form-item">
		<label class="layui-form-label">文章分类</label>
		<div class="layui-input-inline">
			<select name="artclass_id" lay-filter="artclass_id{$article_id}">
				{volist name="getArtclass" id="list"}
				<option value="{$list.artclass_id}">{$list.artclass_name}</option>
				{/volist}
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">文章标题</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="article_name" lay-verify="required" placeholder="请输入文章标题" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">关键词</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="article_keywords" placeholder="文章关键词" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">描述</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<textarea name="article_intro" class="layui-textarea"></textarea>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">文章图片</label>
		<div class="layui-input-block">
			<blockquote class="layui-elem-quote layui-quote-nm">
				<div class="layui-upload-list" id="layui-upload-list{$article_id}">

				</div>
				<div class="layui-upload-drag article_pictures_upload" id="article_pictures_upload{$article_id}">
					<i class="layui-icon layui-icon-upload"></i>
					<p>点击或拖拽上传</p>
				</div>
				<div style="clear: both;">

				</div>
			</blockquote>
		</div>
	<div class="layui-form-item">
		<label class="layui-form-label">作者</label>
		<div class="layui-input-inline">
			<input type="text" name="article_author" placeholder="文章作者" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">来源</label>
		<div class="layui-input-inline">
			<input type="text" name="article_froms" placeholder="文章来源" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
			<label class="layui-form-label">显示排序</label>
			<div class="layui-input-inline layui-input-number">
				<input type="number" value="0" name="sort" lay-verify="required|number" placeholder="" autocomplete="off" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">前端显示排序</div>
		</div>
	<div class="layui-form-item">
			<label class="layui-form-label">详细信息</label>
			<div class="layui-input-block">
				<textarea name="article_content" id="article_content{$article_id}"></textarea>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">推送到首页</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="home_push" lay-text="是|否" lay-skin="switch">
			</div>
		</div>
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_article">保存数据</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
</form>
<script src="/static/ueditor/ueditor.all.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/ueditor/lang/zh-cn/zh-cn.js" type="text/javascript" charset="utf-8"></script>
<script>
	// 赋值
	var article_id = "{$article_id}";
	var article_form_value = {$data};
	var um = UE.getEditor('article_content{$article_id}');
	um.ready(function(){
		if(article_form_value.article_content != undefined){
			um.setContent(article_form_value.article_content);
		}
	})
</script>
<script src="/static/js/article/article_tpl.js" type="text/javascript" charset="utf-8"></script>
